﻿#ifndef CLIENTCORE_CRITICAL_H
#define CLIENTCORE_CRITICAL_H

typedef struct CCriticalSection CCriticalSection;

CCriticalSection *CCriticalSectionNew();

int CCriticalSectionTryEnter(CCriticalSection *cs);

void CCriticalSectionEnter(CCriticalSection *cs);

void CCriticalSectionLeave(CCriticalSection *cs);

void CCriticalSectionFree(CCriticalSection *cs);

#endif // CLIENTCORE_CRITICAL_H
